package com.bulldog.spider;

import us.codecraft.webmagic.model.annotation.ExtractBy;
import us.codecraft.webmagic.model.annotation.TargetUrl;

import java.util.List;

@TargetUrl(value = {"https://daopei.net/list/22","https://daopei.net/list/28"})
public class ListDepartmentRepo {
    // 科室名
    @ExtractBy(value = "//a[@class='am-vertical-align-middle']/text()", notNull = true)
    public List<String> departNameList;

    // 科室href
    @ExtractBy(value = "//li[@class='am-vertical-align']/a/@href", notNull = true)
    public List<String> departHrefList;
}
